﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WXPackage
{
    /// <summary>
    /// 日志记录操作
    /// </summary>
    public class LogOperate
    {
        static LogHelper.LogHelper _log = createLog();

        public static LogHelper.LogHelper createLog()
        {
            if (Directory.Exists("d:\\"))
                return new LogHelper.LogHelper("d:\\log.txt", true);
            return new LogHelper.LogHelper("e:\\log.txt", true);
        }

        /// <summary>
        /// 写入内容标识
        /// </summary>
        /// <param name="content"></param>
        public static void Write(string content)
        {
            _log.WriteLine(content);
        }

    }
}
